package hibernate.method.interfaces;

import java.util.List;

import hibernate.model.Relation;
import hibernate.model.User;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public interface RelationMethodsInterface {
	
	
	public void addRelation(SessionFactory sessionFactory, Session session, int inviting, int invited);
	
	public void deleteRelation(SessionFactory sessionFactory, Session session, Relation relation);
	
	public List<User> findRelationByFrom(SessionFactory sessionFactory, Session session, int from_id);
	
	public List<User> findRelationByTo(SessionFactory sessionFactory, Session session, int to_id);
	
	public List<Relation> findRelationFromTo(SessionFactory sessionFactory, Session session, int from_id, int to_id);
	
	public List<Relation> findRelationToFrom(SessionFactory sessionFactory, Session session, int to_id, int from_id);
	
	
	public List<User> listAllFriends(SessionFactory sessionFactory, Session session, int user_id);
}
